import http.client
import json

conn = http.client.HTTPSConnection("yunwu.ai")
payload = json.dumps({
   "messages": [
      {
         "role": "user",
         "content": "你好呀?"
      }
   ],
   "model": "gemini-2.5-pro-exp-03-25",
   "temperature": 0.1,
   "top_p": 1,
   "stream": True
})
headers = {
   'Accept': 'application/json',
   'Authorization': 'Bearer sk-EH7HXmtL5xtOp2Qit79mXtbQm7irwwvsfKS35XgyJwGjRI0C',
   'Content-Type': 'application/json'
}
conn.request("POST", "/v1/chat/completions", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))